#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	double t = 0;
	int n = 0;
	double drink = 0;
	int cup = 0;
	scanf("%lf %d", &t, &n);
	drink = t / n;
	cup = 2 * n;
	printf("%.3lf\n%d\n", drink, cup);
	return 0;
}